back soft

ساخت وبلاگ

Vote count: 0

I am trying to utilize cython to provide a wrapper for my C++ utilities. One such function I am trying to make accessible is an accessor that retus an enum based on file type.

Here is how I re-define the function in cython:

cdef exte from "reader.h" namespace "magic_number": enum mcr_magic_number_t: MDI = 0 EOT RV UNKNOWN 

and then in my reader.pxd file I have

cpdef mcr_magic_number_t magic_number(self)

and then in my 'reader.pyx' file I have

cpdef mcr_magic_number_t magic_number(self): """ :retu: the magic_number enum :rtype: mcr_magic_number_t """ retu self.thisptr.magic_number() 

Now, when I go to compile this, I get a waing

waing: ‘__pyx_r’ may be used uninitialized in this function

Anyone know how is best to get around this? I tried searching for solutions on google but all I got were pages of other people reporting the same __pyx_r error. Maybe there is a way to set a default value?

asked 38 secs ago

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 293 تاريخ : پنجشنبه 31 تير 1395 ساعت: 22:19

Vote count: 0

We are having problems with our subversion server. I am the admin of the server and the svn account users all of a sudden are not able to login on the url directories. I'm thinking its due to a password expiration issue. Is this true? If so how can I change the password expiration for the users to never expire? I appreciate your time guys.

Thanks

asked 36 secs ago

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 333 تاريخ : پنجشنبه 31 تير 1395 ساعت: 22:19

Vote count: 0

I want to write a multi lines of code in c# Help me please. screenshot

asked 26 secs ago

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 343 تاريخ : پنجشنبه 31 تير 1395 ساعت: 22:19

Vote count: 0

When I was monitoring the backup process in MS-SQL 2008 R2, I saw the single database, say A, is handled by both SQL backup Job and TDP in the same time. When I tried to query Sys.sysprocess, I found the HEAD-block from TDP was blocking the process from SQL backup Job.

For example, SPID 100 (TDP) is backing up database A. Then, SPID 65 (SQL backup Job) is backing up database A.

select * from sys.sysprocess
where spid > 50 and status <> 'sleeping'

The results expressed that SPID 100 is HEAD blocker that blocked SPID65.

The question is: Is this situation possible to be an Update Lock? and why?

asked 1 min ago

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 370 تاريخ : پنجشنبه 31 تير 1395 ساعت: 21:16

Vote count: 0

Is there a way (through a report or separate utility) to track daily hours entered in TFS 2015?

For example, if I wanted to see the difference in completed hours for work items between today and yesterday.

asked 1 min ago

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 305 تاريخ : پنجشنبه 31 تير 1395 ساعت: 21:16

Vote count: 0


I've a strange question : I need to create a SQL vulnerable injection script ! The goal is that the script is vulnerable to Union based only !
Here is my script :

$req = "SELECT pseudo, mail FROM membres WHERE pseudo='".$_POST['membre']."'"; $ans = $bdd->query($req); while($data = $ans->fetch()){ echo '<p><b>'.$data['pseudo'].'</b> : '.$data['mail'].' '.$data['password'].'</p>'; }


As you can see if you enter :

' UNION SELECT password, pseudo FROM membres#


The Script will output all the password of the db ! But this is not realistic ! My $data['password'] is all ready echo but empty by defalt ! How to make a proper vulnerable script wich allowed the hacker to list all table , all columns !
Because in my case only one or two payload will works !
Thank you

asked 43 secs ago

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 294 تاريخ : پنجشنبه 31 تير 1395 ساعت: 21:16

Vote count: 0

I have take the page.php page and i have created a new template page named mytemplatepage.php The page mytemplatepage.php works normally untill i try to add an sql query. when i add the bellow code the page gives http 500 error.

<?php global $wpdb; $sqlresults = $wpdb->get_results( "SELECT id, CategoryName FROM wp_SimParts" ); ?>

if i remove the code and just leave

<?php
?>

the page load normally. if i put an echo on the php code the page again crashes with http 500 error

<?php
echo "hello there";
?>
asked 51 secs ago

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 334 تاريخ : پنجشنبه 31 تير 1395 ساعت: 18:20

Vote count: 0

I am trying to finetune the fully convolutional CNN for my problem. It seems I have an out-of-date Caffe installed in my machine.

It was mentioned in https://github.com/shelhamer/fcn.berkeleyvision.org that "These models are compatible with BVLC/caffe:master @ 8c66fa5 with the merge of PRs BVLC/caffe#3613 and BVLC/caffe#3570."

I am not familiar with the merges and PRs. What does this mean? How can I install "BVLC/caffe:master @ 8c66fa5 with the merge of PRs BVLC/caffe#3613 and BVLC/caffe#3570"?

asked 50 secs ago

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 302 تاريخ : پنجشنبه 31 تير 1395 ساعت: 18:20

Vote count: 0

I have been trying to understand jQuery keypress, keydown, keyup and input events. Could someone please point out the exact differences ? Also I would like to know do all of them get triggered when the user paste a piece of text .
Thanks

asked 47 secs ago

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 316 تاريخ : پنجشنبه 31 تير 1395 ساعت: 18:20

Vote count: 0

The following code retrieves the player's score from the Google Play Leaderboard. If the retrieved value is superior to the one already stored on the device, the score is saved.

 public void Update() {
PlayGamesPlatform.Instance.LoadScores( "myLeaderboardID", LeaderboardStart.PlayerCentered, 100, LeaderboardCollection.Public, LeaderboardTimeSpan.AllTime, (data) => { if (data.Valid) if (data.Scores[0].value > PlayerPrefs.GetInt("highScore", highScore)) { PlayerPrefs.SetInt("highScore", data.Scores[0].value); PlayerPrefs.Save(); } });
}

Unfortunately, I'm getting 2 errors on this line PlayerPrefs.SetInt("highScore", data.Scores[0].value);

error CS1502: The best overloaded method match for `UnityEngine.PlayerPrefs.SetInt(string, int)' has some invalid arguments
error CS1503: Argument `#2' cannot convert `long' expression to type `int'

How can I fix this?

asked 20 secs ago

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 288 تاريخ : پنجشنبه 31 تير 1395 ساعت: 15:31

Vote count: 0

please, help me set border over CSS for tag select for media print in Opera 38.0. I need disable print its border. This setting not function:

select{border:none !important;}

Thank

Jarda

asked 18 secs ago

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 314 تاريخ : پنجشنبه 31 تير 1395 ساعت: 15:31

Vote count: 0

I need to get codec information when using libvlc to play remote media. Since the VLC player can achieve this(see the link below), libvlc may well do it too.

a screenshot of VLC

Also, I find that libvlc_media_tracks_get can retu a related struct as follows:

typedef struct libvlc_media_track_t
{ /* Codec fourcc */ uint32_t i_codec; uint32_t i_original_fourcc; int i_id; libvlc_track_type_t i_type; /* Codec specific */ int i_profile; int i_level; union { libvlc_audio_track_t *audio; libvlc_video_track_t *video; libvlc_subtitle_track_t *subtitle; }; unsigned int i_bitrate; char *psz_language; char *psz_description;
} libvlc_media_track_t;

Maybe the member i_codec stores such information, but it's not human-readable and I don't know the meaning of a specific value. Probably there is a map between them and I haven't found it yet.

asked 10 secs ago

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 328 تاريخ : پنجشنبه 31 تير 1395 ساعت: 15:31

Vote count: 0

I have encountered this weird scenario when i added rows to datagridview from a retrieved list, it gives an Argument Exception. But when I debugged it, adding breakpoint to the statement of adding rows to datagridview, I received no error at all. Can someone help me with this? Thanks.

foreach (AcctgData row in this.currentTransaction.AcctgDataList) { //this.dgvCommon.Update(); this.dgvCommon.Rows.Add(row.Model, row.Parts.ToString(), (row.PreProduction) == '1' ? true : false, row.InGoodUnits, row.InReplace, row.InOthers, (row.InGoodUnits + row.InReplace + row.InOthers), row.OutNextGroup.ToString(), row.InGoodUnits, row.OutDefect, row.OutOther, (row.InGoodUnits + row.OutDefect + row.OutOther), row.PoolingInProcess, row.CompletedUnits, row.OthersInProcess, (row.PoolingInProcess + row.CompletedUnits + row.OthersInProcess), row.Remarks.ToString() );
}
asked 44 secs ago

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 371 تاريخ : پنجشنبه 31 تير 1395 ساعت: 14:00

Vote count: 0

Searching the plugin site and other resources I could not find which plugin version must I install for my Grails version. Can someone help me out?

asked 42 secs ago

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 288 تاريخ : پنجشنبه 31 تير 1395 ساعت: 14:00

Vote count: 0

How to develop magento web service for admin login. I want to develop core php page where check magento admin login using web service. please help me thanks in advance

asked 40 secs ago

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 333 تاريخ : پنجشنبه 31 تير 1395 ساعت: 14:00

Vote count: 0

I'm reading about the NTFS attribute types and it come to the $FILE_NAME attribute structure. Here it is:

Offset Size Description
~ ~ Standard Attribute Header
0x00 8 File reference to the parent directory.
0x08 8 C Time - File Creation
0x10 8 A Time - File Altered
0x18 8 M Time - MFT Changed
0x20 8 R Time - File Read
0x28 8 Allocated size of the file
0x30 8 Real size of the file
0x38 4 Flags, e.g. Directory, compressed, hidden
0x3c 4 Used by EAs and Reparse
0x40 1 Filename length in characters (L)
0x41 1 Filename namespace
0x42 2L File name in Unicode (not null terminated)

What is "Filename Namespace" at the offset 0x41? I know a little about namespace i think. How can it be stored in just 1 byte? Can anyone clear this for me? Thank you.

asked 1 min ago

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 305 تاريخ : پنجشنبه 31 تير 1395 ساعت: 12:55

Vote count: 0

I want to create a folder dynamically for keep my logs on daily basis. For example in 'D:/AppLog/' folder there will be folder called '21-07-2016' which contains logs of particular date only. in the same folder there will be folder called '22-07-2016' which contains logs of particular date only

# Define the root logger with appender file
log4j.rootLogger = DEBUG, FILE
# Define the file appender
log4j.appender.FILE=org.apache.log4j.RollingFileAppender
# Set the name of the file
log4j.appender.FILE.File=D:/ClientLogs/client.log
# Set the immediate flush to true (default)
log4j.appender.FILE.ImmediateFlush=true
# Set the threshold to debug mode
log4j.appender.FILE.Threshold=debug
# Set the append to false, should not overwrite
log4j.appender.FILE.Append=true
# Set the maximum file size before rollover
log4j.appender.FILE.MaxFileSize=100KB
# Set the the backup index
log4j.appender.FILE.MaxBackupIndex=1000
# Define the layout for file appender
log4j.appender.FILE.layout=org.apache.log4j.PatteLayout
log4j.appender.FILE.layout.ConversionPatte=%d{dd MMM yyyy HH:mm:ss} %m%n
 That was my log4j.properties file. Please help me for this. Thank you 
asked 1 min ago

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 360 تاريخ : پنجشنبه 31 تير 1395 ساعت: 12:55

Vote count: 0

I'm using phalcon-2.0.1. I just create a calendar for my blog archive. i want to retrieve data from database which is matched with the date. my code retrieve only one post. I'm not understanding how to query loop through to check the date related data. I need to retrieve that posts which is related with the date users clicked.

[controller]

public function archivesAction($date)
{ $description = "blog-Archive-List"; $this->view->setVar("dynadesc", $description); $keywords = "blog-key"; $this->view->setVar("dynakey", $keywords); if($this->session->has('uname')) { $uid = $this->session->get('id'); $name = $this->session->get('uname'); $active = $this->session->get('active'); $level = $this->session->get('level'); } $this->view->setVar('uid', $uid); $this->view->setVar("uname", $name); $this->view->setVar("active", $active); $this->view->setVar("level", $level); $get = Blogs::find(); foreach($get as $d) { $times = explode(' ', $d->datetime); $dater = $times[0]; $timer = $times[1]; } $archs = Blogs::find(["datetime LIKE :key:","bind"=>["key"=>'%'.$dater.'%']]); $this->view->setvar('dates', $archs); $this->view->pick('blog/archive');
} 

[Calendar in blog page]

<table>
<tr>
<th class='L'><a href="blog?month=<?php echo($prev_month.'&amp;year='.$prev_year);?>">&lsaquo;</a></th>
<th colspan="5" class="monyer"><?php echo($monthName.'-'.$year); ?></th>
<th class='R'><a href="blog?month=<?php echo($next_month); ?>&amp;year=<?php echo($next_year);?>">&rsaquo;</a></th>
</tr>
<tr class='caption'>
<td>S</td>
<td>M</td>
<td>T</td>
<td>W</td>
<td>T</td>
<td>F</td>
<td>S</td>
</tr>
<?php
$monthstart = date("w", $timestamp);
$lastday = date("d", mktime (0, 0, 0, $month + 1, 0, $year));
$startdate = -$monthstart;
$numrows = ceil (((date("t",mktime (0, 0, 0, $month + 1, 0, $year))
+ $monthstart) / 7));
for ($k = 1; $k <= $numrows; $k++){
?><tr class="days"><?php
for ($i = 0; $i < 7; $i++){
$startdate++;
if (($startdate <= 0) || ($startdate > $lastday)){
//If we have a blank day in the calendar.
?><td class="L"><?php echo('&nbsp;');?></td><?php
} else {
if ($startdate == date("j") && $month == date("n") && $year == date("Y")){?>
<td class="today"><a href="blog/archives?date=<?php echo($year.'-'.$month.'-'.$startdate); ?>"><?php echo($startdate); ?></a></td><?php
} else {
?><td><a href="blog/archives/<?php echo($year.'-'.$month.'-'.$startdate); ?>"><?php echo($startdate); ?></a></td><?php } } } ?>
</tr><?php } ?>
</table> 

[View - archive.volt]

{% for archs in dates %}
<a href="blog/showfull/<?php echo($archs->id); ?>"> <dl class="archL"> <dt><b>{{archs.btitle}}</b><br/><em>{{archs.datetime}}</em></dt> <dd>{{archs.bintro}}</dd> </dl>
</a>
{% endfor %}
asked 1 min ago

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 354 تاريخ : پنجشنبه 31 تير 1395 ساعت: 12:55

Vote count: 0

I found this helpful example:
https://developer.mozilla.org/en-US/docs/AJAX/Getting_Started
that shows how to work with data using Ajax. However, the article does not give details about what the PHP file should contain to make the example actually work. I have tried this:

<?php
$name = (isset($_POST['userName'])) ? $_POST['userName'] : 'no name';
$computedString = "Hi, " . $name;
echo json_encode($computedString);
?>

And variations thereof, to no avail. The result is a message box that says undefined. What should be in the PHP file for this example to make it work?

asked 1 min ago

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 364 تاريخ : پنجشنبه 31 تير 1395 ساعت: 10:49

Vote count: 0

I am trying to connect a ESP8266-01 that I had for a while to my Arduino UNO r3. Using the ESP8266 is new to me. I used this site as a reference.

My connection as follows:

Arduino -> ESP8266
TX -> RX
RX -> TX
5V -> Resistor -> VCC, CH_PD
GND -> GND

I am trying to do a quick test to connect to the ESP8266

void setup() { // put your setup code here, to run once:
Serial2.begin(9600);
Serial.begin(115200);
}
void loop() { while(Serial2.available()) Serial.write(Serial2.read()); while(Serial.available()) Serial2.write(Serial.read());
}

I get this error:

Arduino: 1.6.9 (Windows 7), Board: "Generic ESP8266 Module, 80 MHz, 40MHz, DIO, 115200, 512K (64K SPIFFS), ck, Disabled, None"
C:Program Files (x86)Arduinoarduino-builder -dump-prefs -logger=machine -hardware "C:Program Files (x86)Arduinohardware" -hardware "C:UsersLappyAppDataLocalArduino15packages" -tools "C:Program Files (x86)Arduinotools-builder" -tools "C:Program Files (x86)Arduinohardwaretoolsavr" -tools "C:UsersLappyAppDataLocalArduino15packages" -built-in-libraries "C:Program Files (x86)Arduinolibraries" -libraries "C:UsersLappyDocumentsArduinolibraries" -fqbn=esp8266:esp8266:generic:CpuFrequency=80,FlashFreq=40,FlashMode=dio,UploadSpeed=115200,FlashSize=512K64,ResetMethod=ck,Debug=Disabled,DebugLevel=None____ -vid-pid=0X2341_0X0043 -ide-version=10609 -build-path "C:UsersLappyAppDataLocalTempbuild020cff5e75da0458cfe8ecc88a163002.tmp" -waings=none -prefs=build.wa_data_percentage=75 -verbose "C:UsersLappyBox SyncArduinowifi_door_openerwifi_door_opener.ino"
Board generic (platform esp8266, package esp8266) is unknown
Error compiling for board Generic ESP8266 Module.
asked 1 min ago

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 386 تاريخ : پنجشنبه 31 تير 1395 ساعت: 10:49